package com.ysj.springboot.web.test1.service;

import com.ysj.springboot.web.test1.entities.Employee;
import com.ysj.springboot.web.test1.mapper.EmpsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collection;

@Service
public class EmpsServiceImpl {
    @Autowired
    EmpsMapper empsMapper;

    public Collection<Employee> getAll(){
        return empsMapper.selectAllEmps();
    }

}
